/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Entity;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.Text;
import com.google.appengine.repackaged.org.joda.time.DateTime;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType=IdentityType.APPLICATION)
public class IDoc {
    @PrimaryKey
    @Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
    private Long IDocID;

    @Persistent private String PubNum; // So VB den
    @Persistent private DateTime PubDate; // ngày phát hành
    @Persistent private String SignByName; // Tên người ký
    @Persistent private String ReceiveNum; // Số ghi sổ
    @Persistent private DateTime ReceiveDate; // Ngày đến
    @Persistent private Boolean Closed; // Đã xử lý [true/false]
    @Persistent private Boolean Archive; // true: Lưu trữ | false: cần xử lý
    @Persistent private Text Subject; // Nội dung trích yếu
    @Persistent private Text Notes; // Ghi chú
    @Persistent private Text BriefContent; // Nội dung tóm tắt
    @Persistent private Long ODocID; // Trả lời cho số VB đi

    public Long getIDocID()
    {
        return IDocID;
    }
    
    public String getPubNum() {
        return PubNum;
    }

    public void setPubNum(String PubNum) {
        this.PubNum = PubNum;
    }

    public DateTime getPubDate() {
        return PubDate;
    }

    public void setPubDate(DateTime PubDate) {
        this.PubDate = PubDate;
    }

    public String getSignByName() {
        return SignByName;
    }

    public void setSignByName(String SignByName) {
        this.SignByName = SignByName;
    }

    public String getReceiveNum() {
        return ReceiveNum;
    }

    public void setReceiveNum(String ReceiveNum) {
        this.ReceiveNum = ReceiveNum;
    }

    public DateTime getReceiveDate() {
        return ReceiveDate;
    }

    public void setReceiveDate(DateTime ReceiveDate) {
        this.ReceiveDate = ReceiveDate;
    }

    public Boolean getClosed() {
        return Closed;
    }

    public void setClosed(Boolean Closed) {
        this.Closed = Closed;
    }

    public Boolean getArchive() {
        return Archive;
    }

    public void setArchive(Boolean Archive) {
        this.Archive = Archive;
    }

    public Text getSubject() {
        return Subject;
    }

    public void setSubject(Text Subject) {
        this.Subject = Subject;
    }

    public Text getNotes() {
        return Notes;
    }

    public void setNotes(Text Notes) {
        this.Notes = Notes;
    }

    public Text getBriefContent() {
        return BriefContent;
    }

    public void setBriefContent(Text BriefContent) {
        this.BriefContent = BriefContent;
    }

    public Long getODocID() {
        return ODocID;
    }

    public void setODocID(Long ODocID) {
        this.ODocID = ODocID;
    }

    

}
